package com.xie.springCloud;

import com.xie.springCloud.MyRule.MyRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 采用 feign 接口和注解   feign 底层还是 ribbon ，只是写法不同而已
 */

@SpringBootApplication
@EnableEurekaClient
//扫描包的位置，以及负责均衡的决策规则
@EnableFeignClients(basePackages={"com.xie.springCloud.service"},defaultConfiguration= MyRuleConfig.class)
public class ComsumerDept_9002 {
    public static void main(String[] args) {
        SpringApplication.run(ComsumerDept_9002.class,args);
    }
}
